package day20171102;

/**
 * Created by Administrator on 2017-11-2.
 */
public class ExceptionText {

    public static void main(String[] args) {


        System.out.println("hello");
        try {

            // 有可能出错的一些代码
            System.out.println(6 / 0);

            System.out.println("123123");
        } catch (ArithmeticException e) {

            System.out.println("除数为0！");

        }

        System.out.println("world");
    }
}
